package com.dailyblue.java.project.smbms.user.feign;

import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.project.smbms.user.feign.fallback.RoleFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "role", fallback = RoleFeignFallback.class)
public interface RoleFeign {

    @GetMapping("/role/{id}")
    JsonResult find(@PathVariable("id") int id);

}
